﻿using PARK.System.Entitys.Model.Permission.User;
using PARK.System.Entitys.Permission;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace PARK.System.Interfaces.Permission
{
    /// <summary>
    /// 业务契约：用户信息
    /// </summary>
    public interface IUserloginlogService
    {
        /// <summary>
        /// 写入登录日志
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task Create(UserloginlogEntity input);
        /// <summary>
        /// 验证是否允许登录
        /// </summary>
        /// <param name="account"></param>
        /// <param name="IPAddress"></param>
        /// <returns></returns>
        bool CheckIsAllowlogin(string account, string IPAddress);
    }
}
